﻿import QtQuick 2.0

Image {
    id: fire
    source: "qrc:/img/img/fire.png"
    width: 250
    height: 250
    fillMode: Image.Stretch
    scale: 1
    opacity: 0.7

    Behavior on scale {
        SpringAnimation{
            damping: 1
            spring: 5
        }
    }

    signal pressFire()


    MouseArea{
        anchors.fill: parent
        preventStealing: true
        onPressed: {
            fire.scale = 0.9
            pressFire()
            isFired = true
        }
        onReleased: {
            fire.scale = 1
            isFired = false
        }
    }
}

